<template>
  <div class>
    <slot name="a"></slot>
    child components
    {{name}} {{age}}
    <button @click="$emit('path')">msg</button>
    <slot name="b"></slot>
  </div>
</template>

<script>
export default {
  props: {
    age: Number
  },
  data() {
    return {
      name: "com"
    };
  }
};
</script>

<style scoped>

</style>
